package com.byyy.ccts.modules.task.task;


import com.byyy.ccts.core.message.rocketmq.OAProducer;
import com.byyy.ccts.core.utils.SpringContextHolder;
import com.byyy.ccts.modules.cc.mapper.TestTaskMapper;
import com.byyy.ccts.modules.cc.rmi.server.UploadServer;
import com.byyy.ccts.modules.cc.service.IHumitureService;
import com.byyy.ccts.modules.cc.service.IPsZcdMxService;
import com.byyy.ccts.modules.cc.service.IPsZcdService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.text.MessageFormat;

@Component
public class TaskTest {
    private static final Logger logger = LoggerFactory.getLogger(UploadServer.class);

    @Autowired
    private IPsZcdService psZcdService;
    @Autowired
    private IPsZcdMxService psZcdMxService;
    @Autowired
    private IHumitureService humitureService;

    @Autowired
    private TestTaskMapper testTaskMapper;

    public void run(String param) {
        OAProducer oAProducer = (OAProducer) SpringContextHolder.getBean("oAProducer");
        oAProducer.sendOAMail("exception", "定时任务执行错误", "任务名称 = [{0}]执行错误");
        logger.trace("run..............");
    }

}
